<!-- 职权目录列表页面  -->
<link href="../css/bootstrap/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="../css/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../css/themes/icon.css">

<div class="doc-manage" data-options="border:false">
	<div class="well well-small" style="margin: 5px">
		
		<p>
			<span class="badge">提示</span>
			<font color="red"> 单击  </font><strong>文档类型</strong>，你可以对相应分类的文档进行编辑!
		</p>
	</div>
	<table style="width:100%">
		<tr>
			<td style="width:20%">
			
				<div class="doc-type">
					<table cellpadding="0" cellspacing="0" >
						<tr>
							<td style="padding-left:4px;padding-bottom:4px;" class="doc-type-list-btn">
								
									
							</td>						
							
						</tr>
					</table>
				</div>				
				
				
				<table class="dg-type easyui-treegrid" title="文档类型"
					data-options="rownumbers:true,
					animate: true,									
					striped:true,
					border:true,
					//singleSelect:false,
					idField: 'id',
					treeField: 'name',					
					fitColumns: true,
					checkOnSelect:true,					
					selectOnCheck:true">
					
					<thead>						
						<tr>							
							<th field="name" width="100" align="left" halign="center">分类名称</th>
														
						</tr>
					</thead>
					
				</table>
			</td>
			<td style="width:79%">
				 <div id="doc-detail" class="doc-detail">
					<div  class="doc-detail-list-btn">
						
					</div>
				</div>
				
				<table id="dg-detail" class="easyui-datagrid dg-detail" title="文档列表"
					data-options="rownumbers:true,
					animate: true,									
					striped:true,
					border:true,
					//singleSelect:false,
					idField: 'id',									
					fitColumns: true,
					checkOnSelect:true,
					pagination : true,
					selectOnCheck:true					
					">
					
					<thead>						
						<tr>
							<th field="ck" checkbox="true" ></th>
							<th field="name" width="100" align="left" halign="center">职权名称</th>
							<th field="exec_body_name" width="100" align="left" halign="center">行使主体</th>
							<th field="exec_department_name" width="100" align="left" halign="center">执行科室</th>
							<th field="responsible_person" width="100" align="left" halign="center">责任人</th>
							<th field="risk_point" width="100" align="left" halign="center">风险点</th>
							<th field="level_risk" width="100" align="left" halign="center">风险等级</th>							
							<th field="status" width="30" align="center" data-options="{
								formatter:function(value,row,index){
									if(value){
										switch(value){
											case '0':
											return '<span><font color=blue>已提交</font></span>';
											break;
											case '1':
											return '<span><font color=green>审核通过</font></span>';
											break;
											case '-1':
											return '<span><font color=red>未通过</font></span>';
											break;
										}
									}
									return null;						
								}
							}">审核状态</th>							
						</tr>
					</thead>
					
				</table>
			</td>
		</tr>		
	</table>
	
</div>


<script>

requirejs(['docListPage','docDuties','domReady!'],function(dept,party,doc){
	dept.init({
		doc:doc,		
		auditEnable:true,
		detailLoadFilter:party.detailLoadFilter,
		rowDblClick:party.pageShow});		
});	

</script>
